import request from '@/utils/request'

// 查询指挥部成员列表
export function listMember(query) {
  return request({
    url: '/pla/member/list',
    method: 'get',
    params: query
  })
}

// 查询指挥部成员详细
export function getMember(memberid) {
  return request({
    url: '/pla/member/' + memberid,
    method: 'get'
  })
}

// 新增指挥部成员
export function addMember(data) {
  return request({
    url: '/pla/member',
    method: 'post',
    data: data
  })
}

// 修改指挥部成员
export function updateMember(data) {
  return request({
    url: '/pla/member',
    method: 'put',
    data: data
  })
}

// 删除指挥部成员
export function delMember(memberid) {
  return request({
    url: '/pla/member/' + memberid,
    method: 'delete'
  })
}
